<template>
  <div>

 <!-- 8：用router-link to属性让其获取高亮的特点 -->
 <router-link to='/home'>主页</router-link> &nbsp;
 <router-link to='/news'>新闻</router-link> &nbsp;
 <router-link to='/sport'>体育</router-link> &nbsp;

<h1>体育-改变人生</h1>
    <!-- 7：占位路由 -->
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  data(){
    return {}
  }
}
</script>

<style scoped>

</style>